﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Forum/Views/Shared/Forum1.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<SacNetUG.Areas.Forum.Models.Post>>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h4><%: ViewData["AllSubjects"] %></h4>
<span class="userredmessage"><%: TempData["SaveNewSubject"] %></span>
<span class="userredmessage"><%: TempData["SaveFlaggedSubject"] %></span>
<hr />
<table class="tableofsubjects">
<% using (Html.BeginForm())
   { %>
    <% foreach (var subjectShown in Model)
       { %>
        <tr>
            <td style="width:75px; text-align:left; vertical-align:text-top"><%: subjectShown.PostorHandle%></td>
            <td style="width:95px; text-align:right; vertical-align:text-top"><%: subjectShown.DatePosted%></td>
            <td style="width:60px; text-align:right; vertical-align:text-top"><%: subjectShown.NumberOfPosts%></td>
            <td style="width:60px; text-align:right; vertical-align:text-top"><%: Html.ActionLink("flag", "FlagSubject", "Posts", new { postID = subjectShown.PostID }, null)%></td>
            <td style="width:80%; text-align:left; vertical-align:text-top; padding-left:10px"><%: Html.ActionLink(subjectShown.InitialPostSubject, "SubjectAndResultingPosts", "Posts", new { postedto = subjectShown.PostID }, null)%></td>
        </tr>
     <% }
   } %>
</table>
<hr />
<div class="activelink">
    <%: Html.ActionLink("Create a new Subject for Discussion or Comment or Answers (login required)", "CreateNewSubject", "Posts")%>
</div>

</asp:Content>

